Ext.define('TS.model.rp.ContactModel',{
	extend: 'Ext.data.Model',	
	fields: [
	    {name:'id',type:'int'},
	    {name:'arpBillId',type:'int'},
	    {name:'rpBillId',type:'int'},
	    {name:'direct',type:'int'},
	    {name:'typeId',type:'int'},
	    {name:'typeName',type:'string'},
	    {name:'billCode',type:'string'},
	    {name:'billDate',type:'date'},
	    {name:'custSuppId',type:'int'},
	    {name:'deptId',type:'int'},
	    {name:'empId',type:'int'},
	    {name:'amount',type:'float'},
	    {name:'remAmount',type:'float'},
	    {name:'checkStatus',type:'int'},
	    {name:'fyear',type:'int'},
	    {name:'period',type:'int'},
	    {name:'remark',type:'string'},
	    {name:'arpAmount',type:'float'},
	    {name:'rpAmount',type:'float'},
	    {name:'endAmount',type:'float'},
	    {name:'arecAmount',type:'float'},
	    //{name:'arecAmountCheck',type:'float'},
	    {name:'apayAmount',type:'float'},
	    //{name:'apayAmountCheck',type:'float'},
	    {name:'recAmount',type:'float'},
	    //{name:'recAmountCheck',type:'float'},
	    {name:'payAmount',type:'float'},
	    //{name:'payAmountCheck',type:'float'}
    ],
	associations:[
	        	  {type: 'hasOne',model: 'TS.model.base.CustomerModel',associatedName:'customer',associationKey:'customer'},
	        	  {type: 'hasOne',model: 'TS.model.base.DeptModel',associatedName: 'dept',associationKey:'dept'},
	        	  {type: 'hasOne',model: 'TS.model.base.EmpModel',associatedName: 'emp',associationKey:'emp'}
	]    
});    